package com.bluegalaxy.nhb.snservice.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface UserTagsMapper {

    int insertBatch(@Param("tableName") String tableName,
                    @Param("list") List<String> list,
                    @Param("groupType") String groupType,
                    @Param("groupTypeName") String groupTypeName,
                    @Param("dt") String dt);

    List<Map<String,Object>> selectByTableName(@Param("tableName") String tableName,
                                               @Param("startPage") Integer startPage,
                                               @Param("pageSize") Integer pageSize,
                                               @Param("list") List<Map<String,Object>> list,
                                               @Param("groupType") String groupType,
                                               @Param("groupTypeName") String groupTypeName);

    int countByTableName(@Param("tableName") String tableName,
                         @Param("groupType") String groupType,
                         @Param("groupTypeName") String groupTypeName);

    int countByDt(@Param("tableName") String tableName,@Param("dt") String dt);

    List<String> findTagsByUser(@Param("tableList") List<String> tableList,
                                 @Param("uId") String uId);


}